package pATT.DataSetsGenerator.dataSetsGenerator.core.implement;

import java.util.Vector;


public class RelationManager{
    private Relation currentRelation = null;
    private Vector<Relation> relations = new Vector<Relation>();
	public static RelationManager instance = null;

    public RelationManager() {
		
	}
    public static void createInstance(){
		instance = new RelationManager();
	
		
	}
    
	public Relation getCurrentRelation() {
		return currentRelation;
	}
	
	public void setCurrentRelation(int pos) {	
		System.out.print("relations.get(pos): "+relations.get(pos).getName());
		currentRelation = relations.get(pos);
	}
	
	public Relation getRelation(int pos) {
		return relations.get(pos);
	}

	public Vector<Relation> getRelations() {
		return relations;
	}
	
	public void setRelations(Relation rela){
		currentRelation = rela;
		relations.add(rela);
	}
	
}
